package com.chixing.day02_switch_case;

public class SortTest {
    public static void main(String[] args) {
        int[] arr={4,2,5,6,3,8,1,7};
        int[] quick = SortUtil.quickSort(arr, 0, arr.length-1);
        for (int i = 0; i < quick.length; i++) {
            System.out.println("快速排序: "+arr[i]);
        }
        System.out.println("====================");
        int[] bubble = SortUtil.bubbleSort(arr);
        for (int i = 0; i < bubble.length; i++) {
            System.out.println("冒泡排序: "+arr[i]);
        }
    }
}
